home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / YICN23.ZIP / INCLUDE / YAKSTICK.H < prev    next >
C/C++ Source or Header  |  1993-02-14  |  542b  |  27 lines

  1. #include "stddefs.h"
  2. #ifndef YAKSTICK.H
  3. #define YAKSTICK.H
  4.  
  5. extern int jsense;
  6. extern int jrange;
  7.  
  8. class yakStick  //joystick class object!
  9. {
  10. public:
  11.   byte stickNumber;
  12.   int x, y;
  13.   byte button1, button2;
  14.   yakStick(byte number) {stickNumber = number; x=y=0; button1=button2=0; jsense = 10; jrange = 200;};
  15.   int read(void);
  16.   int readX(void);
  17.   int readY(void);
  18.   byte readButton1(void);
  19.   byte readButton2(void);
  20. };
  21.  
  22. #ifndef YAKSTICKUNIT
  23. extern yakStick joystick1(1);
  24. extern yakStick joystick2(2);
  25. #endif
  26.  
  27. #endif